package com.intellagric.interfaces.facility;

import com.intellagric.common.bean.LayuiDataGridResult;
import com.intellagric.common.bean.ResponseMessage;
import com.intellagric.pojo.FacilityUsed;

import java.text.ParseException;

public interface FacilityUsedService {
    ResponseMessage selectFacilityUsedById(String id);

    ResponseMessage insertFacilityUsed(FacilityUsed FacilityUsed);

    ResponseMessage deleteFacilityUsed(String id);

    ResponseMessage editFacilityUsed(FacilityUsed FacilityUsed);

    LayuiDataGridResult getList(int page, int limit);

    LayuiDataGridResult batchDeleteFacilityUsed(String[] ids);

    LayuiDataGridResult getFacilityUsedByKeyword(int page, int limit, String keyword);



    LayuiDataGridResult getListByCategoryId(int page, int limit, String categoryId);

    LayuiDataGridResult getBookedList(int page, int limit);

    LayuiDataGridResult getBookedListByCategoryId(int page, int limit, String categoryId);

    ResponseMessage insertFacilityBooked(FacilityUsed FacilityUsed);

    LayuiDataGridResult bookReturn(String facilityUsedId);

    LayuiDataGridResult batchBookReturn(String[] facilityUsedIds);

    String[] getRecentDate();

    long[] getRecentData() throws ParseException;
}
